<div class="page_title">
    <span class="title_icon"><span class="blocks_images"></span></span>
    <h3>Parametros</h3>
</div>
<div id="content">
    <div class="grid_container">
        <div class="grid_12">
            <div class="widget_wrap">
                <div class="widget_top">
                    <span class="h_icon blocks_images"></span>
                    <h6>Listado de Parametros</h6>
                </div>
                <div class="widget_content">
                    <table class="display data_tbl">
                        <thead>
                            <tr>
                                <th>Orden toma</th>
                                <th>Medidas</th>
                                <th>Tipo</th>
                                <th>MenorQue</th>
                                <th>MayorQue</th>
                                <th>EdadMin</th>
                                <th>EdadMax</th>
                                <th>Acciones</th>
                            </tr>
                        </thead>
                        <tbody>
                             <?php
                             //debug($Parametro);
                             $i=1;
                            foreach ($parametro as $p):
                            ?>
                                <tr class="gradeA">
                                    <td><?php echo h($p['Medida']['orden'])?></td>
                                    <td><?php echo h($p['Medida']['nombre']);?></td>
                                    <td>
                                        <?php
                                        if($p['Parametro']['motivo'] == 'T'):
                                           echo 'soloTrauma';
                                        else:
                                            echo 'noTrauma';
                                        endif;
                                        ?></td>
                                    <td><?php echo h($p['Parametro']['rango_inicial']);?></td>
                                    <td><?php echo h($p['Parametro']['rango_final']); ?></td>
                                    <td><?php echo h($p['Parametro']['edadmin']); ?></td>
                                    <td><?php echo h($p['Parametro']['edadmax']); ?></td>


                                    <td>
                                        <?php echo $this->Html->link($this->Html->image("iconos/edit.png",array("alt"=>'Editar','title'=>'EDITAR')), array('action'=>'edit', $p['Parametro']['id']),array('escape'=>false));?>
                                      
                                        <?php echo $this->Html->link($this->Html->image("iconos/cancel.png",array("alt"=>'delete','title'=>'ELIMINAR')), array('action'=>'delete', $p['Parametro']['id']),array('escape'=>false), 'esta seguro de eliminar '.$p['Parametro']['nombre']);?>
                                    
                                    </td>
                                </tr>
                            <?php endforeach; ?>
                        </tbody>,
                        <!--<tfoot>
                            <tr>
                                <th>Nombre</th>
                                <th>Descripcion</th>

                            </tr>
                        </tfoot>
                        -->
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>